package com.snow.useviewdemo;

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;

import com.snow.useviewdemo.base.BaseActivity;
import com.snow.useviewdemo.databinding.ActSplashBinding;

/**
 * author : zyt
 * e-mail : 632105276@qq.com
 * date   : 2020-03-24
 * desc   :
 */
public class SplashActivity extends BaseActivity<ActSplashBinding> {
    @Override
    protected int getLayoutId() {
        return R.layout.act_splash;
    }

    @Override
    protected void setViewData(Bundle savedInstanceState) {
        new CountDownTimer(3000, 3000) {
            @Override
            public void onTick(long millisUntilFinished) {

            }

            @Override
            public void onFinish() {
                startActivity(new Intent(SplashActivity.this, MainActivity.class));
                finish();
            }
        }.start();

    }
}
